//将下面对象中数组进行扁平化合并去重
const deps = {
    '采购部': [1, 2, 3],
    '人事部': [5, 8, 12],
    '行政部': [5, 14, 79],
    '运输部': [3, 64, 105],
}

//传统方式
let newArrr = []
for (let item in deps) {
    const value = deps[item]
    if (Array.isArray(value)) {
        newArrr = [...newArrr,...value]
    }
}
console.log([...new Set(newArrr)])


//使用新语法方式
let member = Object.values(deps).flat(Infinity);
console.log([...new Set(member)])